package com.sl.hx.shop.ui.home.adapter;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sl.hx.shop.R;
import com.sl.hx.shop.bean.CollectGoodsBean;
import com.sl.hx.shop.bean.SpecialList;

import java.util.List;

public class SpecialAdapter extends BaseQuickAdapter<SpecialList,BaseViewHolder> {

    public SpecialAdapter(@Nullable List<SpecialList> data) {
        super(R.layout.item_special, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SpecialList item) {
        ImageView imageView = helper.getView(R.id.image);
        Glide.with(mContext).load(item.getLogo()).apply(RequestOptions.placeholderOf(R.drawable.banenr_bitmap)).into(imageView);
    }
}
